package com.haoze.nurse.dao;

import com.haoze.common.mapper.MyMapper;
import com.haoze.nurse.model.EmrFileIndexEntity;
import org.apache.ibatis.annotations.Param;

import java.util.Date;
import java.util.List;
import java.util.Map;

public interface FileIndexEntityMapper extends MyMapper<EmrFileIndexEntity> {

    int insert(@Param("emrFileIndex") EmrFileIndexEntity emrFileIndex);

    void insertCriticalRecord(@Param("type") String type, @Param("emrFileId") String emrFileId, @Param("reqNum") String reqNum);

    List<Map<String, Object>> getAllDeletedFileIndexDataEntity(@Param("emrFileIndex") EmrFileIndexEntity emrFileIndex);

    String getDoctorGroupName(@Param("fileId") String fileId,@Param("varCode") String varCode);

    String getVTEScore(@Param("fileId") String fileId);

    void deleteCriticalRecord(@Param("emrFileId") String emrFileId);

    void deleteDetail(@Param("emrFileId") String emrFileId);

    void recoveryDetail(@Param("emrFileId") String emrFileId);

    List<EmrFileIndexEntity> queryExistFile(@Param("ctlId") String ctlId, @Param("inpatNum") String inpatNum);

    List<EmrFileIndexEntity> queryAllEntityByTime(@Param("inpatNum") String inpatNum, @Param("startDate") Date startDate,@Param("endDate") Date endDate);
}
